import Axios from '../index'
import conf from '../../config'

class LogoService {
  /**
   *
   * @param params
   * @returns 刷新token
   * @constructor
   */
  async refreshToken(params) {
    return await Axios.refreshTokenLoginPost({
      url: conf.UrlList.refreshToken,
      data: params
    })
  }
  /**
   *
   * @param params
   * @returns 获取权限
   * @constructor
   */
  async getMenus(params) {
    return await Axios.get({
      url: conf.UrlList.Menus,
      data: params
    })
  }
  /**
   *
   * @param params
   * @returns 获取当前登录人所在连锁中台模块配置
   * @constructor
   */
  async pmsConfig(params) {
    return await Axios.get({
      url: conf.UrlList.pmsConfig,
      data: params
    })
  }

}


export default new LogoService()
